﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CapaDeDominio.Reserva>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Asigna Instrumento
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Instrumento</h2>

    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm("Instrumento", "Reserva", FormMethod.Post)) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%: Html.Hidden("ReservaCodigo", TempData["codReserva"])%>
                <%: Html.DropDownList("InstrumentoCodigo", (IEnumerable<SelectListItem>)TempData["instrumentos"])%>
            </div>                 
            <p>
                <input type="submit" value="Grabar" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar", "Index") %>
    </div>

</asp:Content>

